package com.yehongyu.mytools.basic.grammar;

public class Java004_Constructor2 {
	// private static final int STATIC_FINAL_VARIABLE = 1;
	// private static int STATIC_VARIABLE = 2;
	//
	// private final int FINAL_VARIABLE = 3;
	// private int CLASS_VARIABLE = 4;

	static {
		System.out.println("A");
	}

	public Java004_Constructor2() {
		System.out.println("B");
	}

	public void someMethod() {
		int methodVariableA = 0;
		System.out.println("C" + methodVariableA);
	}

	public static void main(String[] args) {
		// 测试对象及类的初始化
		Java004_Constructor2 obj = new Java004_Constructor2();
		System.out.println("D");
		obj.someMethod();
		System.out.println("E");

		Java004_Constructor2 obj2 = new Java004_Constructor2();
		System.out.println("F");
		obj2.someMethod();
		System.out.println("G");
	}
}
